<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>每日天气提醒</title>
    <style>
        /* 全局样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* 基础样式 */
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 20px;
            color: #333;
            line-height: 1.6;
        }
        
        /* 容器样式 */
        .container {
            max-width: 650px;
            margin: 0 auto;
            background-color: white;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease;
        }
        
        .container:hover {
            transform: translateY(-5px);
        }
        
        /* 头部样式 */
        .header {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,224L48,224C96,224,192,224,288,218.7C384,213,480,203,576,176C672,149,768,107,864,117.3C960,128,1056,192,1152,202.7C1248,213,1344,171,1392,149.3L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
            background-size: cover;
            background-position: center;
            z-index: 0;
        }
        
        .header > * {
            position: relative;
            z-index: 1;
        }
        
        .header h1 {
            font-size: 28px;
            margin-bottom: 10px;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .header p {
            font-size: 16px;
            opacity: 0.95;
            font-weight: 400;
        }
        
        /* 内容区域 */
        .content {
            padding: 30px;
        }
        
        /* 城市标题 */
        .city-title {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e8f4ff;
        }
        
        .city-title h2 {
            font-size: 24px;
            color: #4facfe;
            margin: 0;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
        
        /* 天气卡片 */
        .weather-card {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.5);
        }
        
        .weather-card:hover {
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
        }
        
        .weather-card h3 {
            font-size: 20px;
            margin-bottom: 20px;
            color: #2d3748;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* 天气概览 */
        .weather-overview {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.6);
        }
        
        .weather-main {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .weather-icon {
            font-size: 64px;
            line-height: 1;
        }
        
        .weather-temp {
            font-size: 48px;
            font-weight: 700;
            color: #2d3748;
            line-height: 1;
        }
        
        .weather-text {
            font-size: 20px;
            color: #4a5568;
            margin-top: 5px;
        }
        
        .weather-status {
            text-align: right;
        }
        
        .weather-status p {
            margin: 5px 0;
            font-size: 14px;
            color: #718096;
        }
        
        /* 天气详情网格 */
        .weather-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .detail-item {
            background-color: white;
            padding: 18px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }
        
        .detail-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        }
        
        .detail-label {
            font-size: 12px;
            font-weight: 600;
            color: #a0aec0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        
        .detail-value {
            font-size: 22px;
            font-weight: 600;
            color: #2d3748;
        }
        
        .detail-unit {
            font-size: 14px;
            color: #718096;
            margin-left: 3px;
        }
        
        /* 日出日落信息 */
        .sun-info {
            display: flex;
            justify-content: space-around;
            background-color: rgba(255, 255, 255, 0.7);
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 25px;
        }
        
        .sun-item {
            text-align: center;
            flex: 1;
        }
        
        .sun-item .sun-icon {
            font-size: 32px;
            margin-bottom: 10px;
            display: block;
        }
        
        .sun-item .sun-label {
            font-size: 14px;
            color: #718096;
            margin-bottom: 5px;
            font-weight: 500;
        }
        
        .sun-item .sun-time {
            font-size: 18px;
            font-weight: 600;
            color: #2d3748;
        }
        
        /* 天气提示 */
        .weather-tip {
            background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
            border-left: 5px solid #ffc107;
            padding: 20px;
            border-radius: 10px;
            margin: 25px 0;
            font-size: 15px;
            line-height: 1.8;
            color: #856404;
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
            white-space: pre-wrap;
        }
        
        /* 内容区块通用样式 */
        .content-section {
            background-color: white;
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
            transition: all 0.3s ease;
        }
        
        .content-section:hover {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        }
        
        .content-section h3 {
            font-size: 18px;
            margin-bottom: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* 励志语句 */
        .quote-section {
            background: linear-gradient(135deg, #e7f3ff 0%, #b3e0ff 100%);
            color: #0056b3;
        }
        
        .quote-section h3 {
            color: #0056b3;
        }
        
        .quote-cn {
            font-size: 18px;
            font-weight: 600;
            line-height: 1.6;
            margin-bottom: 10px;
        }
        
        .quote-en {
            font-size: 14px;
            color: #0069d9;
            line-height: 1.6;
            font-style: italic;
        }
        
        /* 爱心语句 */
        .love-section {
            background: linear-gradient(135deg, #fff0f5 0%, #ffccd5 100%);
            color: #c2185b;
            text-align: center;
        }
        
        .love-section h3 {
            color: #c2185b;
            justify-content: center;
        }
        
        .love-text {
            font-size: 18px;
            font-weight: 500;
            line-height: 1.8;
            margin: 0;
        }
        
        /* 音乐热评 */
        .music-section {
            background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
            color: #22543d;
        }
        
        .music-section h3 {
            color: #22543d;
        }
        
        .music-content {
            font-size: 16px;
            line-height: 1.8;
            font-style: italic;
            margin-bottom: 15px;
        }
        
        .music-name {
            text-align: right;
            font-size: 14px;
            color: #2f855a;
            font-weight: 500;
        }
        
        /* 页脚 */
        .footer {
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            padding: 25px;
            text-align: center;
            font-size: 13px;
            color: #a0aec0;
            border-top: 1px solid #e2e8f0;
        }
        
        .footer p {
            margin: 5px 0;
        }
        
        /* 响应式设计 */
        @media (max-width: 600px) {
            body {
                padding: 10px;
            }
            
            .container {
                border-radius: 12px;
            }
            
            .header {
                padding: 20px;
            }
            
            .header h1 {
                font-size: 24px;
            }
            
            .content {
                padding: 20px;
            }
            
            .weather-overview {
                flex-direction: column;
                text-align: center;
                gap: 20px;
            }
            
            .weather-main {
                justify-content: center;
            }
            
            .weather-icon {
                font-size: 48px;
            }
            
            .weather-temp {
                font-size: 36px;
            }
            
            .weather-details {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                gap: 12px;
            }
            
            .detail-item {
                padding: 15px;
            }
            
            .detail-value {
                font-size: 18px;
            }
            
            .sun-info {
                flex-direction: column;
                gap: 15px;
            }
            
            .content-section {
                padding: 20px;
            }
        }
        
        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .weather-card,
        .content-section {
            animation: fadeInUp 0.6s ease-out;
        }
        
        .detail-item {
            animation: fadeInUp 0.6s ease-out forwards;
        }
        
        .detail-item:nth-child(1) { animation-delay: 0.1s; }
        .detail-item:nth-child(2) { animation-delay: 0.2s; }
        .detail-item:nth-child(3) { animation-delay: 0.3s; }
        .detail-item:nth-child(4) { animation-delay: 0.4s; }
        .detail-item:nth-child(5) { animation-delay: 0.5s; }
        .detail-item:nth-child(6) { animation-delay: 0.6s; }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>🌤️ 每日天气提醒</h1>
            <p>今天也要开心呀！</p>
        </div>
        <div class="content">
            <div class="city-title">
                <h2>📍 {city}</h2>
            </div>
            {weather_content}
            
            <div class="content-section quote-section">
                <h3>📖 励志一句</h3>
                <div class="quote-cn">{lz_ch}</div>
                <div class="quote-en">{lz_en}</div>
            </div>
            
            <div class="content-section love-section">
                <h3>💖 我想对你说</h3>
                <p class="love-text">{love}</p>
            </div>
            
            <div class="content-section music-section">
                <h3>🎵 网易云音乐热评</h3>
                <div class="music-content">{music_content}</div>
                <div class="music-name">— {music_name}</div>
            </div>
        </div>
        <div class="footer">
            <p>📊 天气数据由和风天气提供</p>
            <p>🤖 每日自动推送 · 仅供参考</p>
        </div>
    </div>
</body>
</html>